package com.lc1993929.dao;

import com.lc1993929.entity.Person;

import java.util.List;

/**
 * Created by LiuChang on 2017/3/30.
 */
public interface AbstractRepository {


    public void insert(Person person);


    public Person findOne(String id);

    public List<Person> findAll();

    public List<Person> findByRegex(String regex);

    public void removeOne(String id);

    public void removeAll();

    public void findAndModify(String id);


}
